package com.caldremch.rxretrofit.api.exception;

import android.os.Bundle;

/**
 * Created by Caldremch on 2017-06-17 01:06
 */

public class HttpException extends RuntimeException {

    public int code;

    public HttpException(String message) {
        super(message);
    }

    public HttpException(int code, String message) {
        super(message);
        this.code = code;
    }

    public static HttpException newInstance(int code, String message) {

        return new HttpException(code,message);
    }
}
